package fr.inserm.um915.jimpute.model;

import com.sleepycat.bind.tuple.TupleBinding;
import com.sleepycat.bind.tuple.TupleInput;
import com.sleepycat.bind.tuple.TupleOutput;

public class RsMergeArch
	{
	private int rsHigh=-1;
	private int rsLow=-1;
	private short build_id=-1;
	private byte orient=-1;
	private int rsCurrent=-1;
	private int orien2Current=-1;
	
	public static final TupleBinding<RsMergeArch> BINDING=new TupleBinding<RsMergeArch>()
		{
		@Override
		public RsMergeArch entryToObject(TupleInput in)
			{
			RsMergeArch o=new RsMergeArch();
			o.rsHigh=in.readInt();
			o.rsLow=in.readInt();
			o.build_id=in.readShort();
			o.orient=in.readByte();
			o.rsCurrent=in.readInt();
			o.orien2Current=in.readByte();
			return o;
			}
		
		@Override
		public void objectToEntry(RsMergeArch o, TupleOutput out)
			{
			out.writeInt(o.rsHigh);
			out.writeInt(o.rsLow);
			out.writeShort(o.build_id);
			out.writeByte(o.orient);
			out.writeInt(o.rsCurrent);
			out.writeByte(o.orien2Current);
			}
		};
	
	public RsMergeArch()
	{
		
	}
	
	int getRsHigh()
		{
		return rsHigh;
		}
	
	void setRsHigh(int rsHigh) {
		this.rsHigh = rsHigh;
	}
	public int getRsLow() {
		return rsLow;
	}
	void setRsLow(int rsLow) {
		this.rsLow = rsLow;
	}
	public short getBuildId() {
		return build_id;
	}
	void setBuildId(short build_id) {
		this.build_id = build_id;
	}
	public byte getOrient() {
		return orient;
	}
	void setOrient(byte orient) {
		this.orient = orient;
	}
	public int getRsCurrent() {
		return rsCurrent;
	}
	void setRsCurrent(int rsCurrent) {
		this.rsCurrent = rsCurrent;
	}
	public int getOrien2Current() {
		return orien2Current;
	}
	void setOrien2Current(int orien2Current) {
		this.orien2Current = orien2Current;
	}

	@Override
	public String toString() {
		return "RsMergeArch [rsHigh=" + rsHigh + ", rsLow=" + rsLow
				+ ", build_id=" + build_id + ", orient=" + orient
				+ ", rsCurrent=" + rsCurrent + ", orien2Current="
				+ orien2Current + "]";
	}
	
	
	
	}
